package com.java8.lambda.dome;

/**
 * <p>Description: [类功能描述]</p>
 * Created on 2020/2/25
 *
 * @author <a href="mailto: 819712047@qq.com">谢振东 </a>
 * @version 1.0
 */
public class test1 {
    /**
     * .无参数，无返回值的用法 ：() -> System.out.println("hello lambda");
     */
    public static void master() {
        System.out.println("-----------------test1.master()-----------------");

        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("hello runnable");
            }
        };
        r.run();
        Runnable r1 = () -> System.out.println("hello lambda");
        r1.run();
    }
}
